package com.health.db.dto;

import java.io.Serializable;
import java.math.BigDecimal;

import org.apache.commons.lang3.StringUtils;

import com.health.commons.PropertiesService;

/**
 * Created by helili on 2017/2/20.
 */
public class DoctorListDto implements Serializable{

    /**
	 * 
	 */
	private static final long serialVersionUID = 8546796869283074090L;

	private String docId;

    private String docName  ="";

    private String docTitle  ="";

    private String docLabel  ="";

    private String docImageUrl =PropertiesService.getString("iconUrl.docDefaultUrl").trim();

    private Integer hospitalId;

    private String hospitalName  ="";

    private Integer departmentId;

    private  String departmentName  ="";

    private  String consultScope ="";

    private String evaluateScore = "5.0";

    private Integer orderCount =0;

    private String receiveSpeed ="";
 
    private String orderType="";
    
    private Integer recordAccessRight =0; 

    private String wxopenid="";
    
	public String getWxopenid() {
		return wxopenid;
	}

	public void setWxopenid(String wxopenid) {
		this.wxopenid = wxopenid;
	}

	public Integer getRecordAccessRight() {
		return recordAccessRight;
	}

	public void setRecordAccessRight(Integer recordAccessRight) {
		this.recordAccessRight = recordAccessRight;
	}

	/**
	 * @return the docId
	 */
	public String getDocId() {
		return docId;
	}

	/**
	 * @param docId the docId to set
	 */
	public void setDocId(String docId) {
		this.docId = docId;
	}

	/**
	 * @return the docName
	 */
	public String getDocName() {
		return docName;
	}

	/**
	 * @param docName the docName to set
	 */
	public void setDocName(String docName) {
		this.docName = docName;
	}

	/**
	 * @return the docTitle
	 */
	public String getDocTitle() {
		return docTitle;
	}

	/**
	 * @param docTitle the docTitle to set
	 */
	public void setDocTitle(String docTitle) {
		this.docTitle = docTitle;
	}

	/**
	 * @return the docLabel
	 */
	public String getDocLabel() {
		return docLabel;
	}

	/**
	 * @param docLabel the docLabel to set
	 */
	public void setDocLabel(String docLabel) {
		this.docLabel = docLabel;
	}

	/**
	 * @return the docImageUrl
	 */
	public String getDocImageUrl() {
		return docImageUrl;
	}

	/**
	 * @param docImageUrl the docImageUrl to set
	 */
	public void setDocImageUrl(String docImageUrl) {
		this.docImageUrl = docImageUrl;
	}

	/**
	 * @return the hospitalId
	 */
	public Integer getHospitalId() {
		return hospitalId;
	}

	/**
	 * @param hospitalId the hospitalId to set
	 */
	public void setHospitalId(Integer hospitalId) {
		this.hospitalId = hospitalId;
	}

	/**
	 * @return the hospitalName
	 */
	public String getHospitalName() {
		return hospitalName;
	}

	/**
	 * @param hospitalName the hospitalName to set
	 */
	public void setHospitalName(String hospitalName) {
		this.hospitalName = hospitalName;
	}

	/**
	 * @return the departmentId
	 */
	public Integer getDepartmentId() {
		return departmentId;
	}

	/**
	 * @param departmentId the departmentId to set
	 */
	public void setDepartmentId(Integer departmentId) {
		this.departmentId = departmentId;
	}

	/**
	 * @return the departmentName
	 */
	public String getDepartmentName() {
		return departmentName;
	}

	/**
	 * @param departmentName the departmentName to set
	 */
	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	/**
	 * @return the consultScope
	 */
	public String getConsultScope() {
		return consultScope;
	}

	/**
	 * @param consultScope the consultScope to set
	 */
	public void setConsultScope(String consultScope) {
		this.consultScope = consultScope;
	}


	
	
	public String getEvaluateScore() {
		return evaluateScore;
	}

	public void setEvaluateScore(String evaluateScore) {
		
		if (StringUtils.isNotBlank(evaluateScore)) {
			this.evaluateScore = String.valueOf(new BigDecimal(evaluateScore).setScale(1, BigDecimal.ROUND_DOWN));;	
		}else{
			this.evaluateScore=null;
		}
	}

	/**
	 * @return the orderCount
	 */
	public Integer getOrderCount() {
		return orderCount;
	}

	/**
	 * @param orderCount the orderCount to set
	 */
	public void setOrderCount(Integer orderCount) {
		this.orderCount = orderCount;
	}

	/**
	 * @return the receiveSpeed
	 */
	public String getReceiveSpeed() {
		return receiveSpeed;
	}

	/**
	 * @param receiveSpeed the receiveSpeed to set
	 */
	public void setReceiveSpeed(String receiveSpeed) {
		this.receiveSpeed = receiveSpeed;
	}

	/**
	 * @return the orderType
	 */
	public String getOrderType() {
		return orderType;
	}

	/**
	 * @param orderType the orderType to set
	 */
	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}
   
}
